@color-bg: #ffffff;
@color-code-bg: #f7f7f7;
@color-border: #dddddd;
@color-border-top: #cccccc;
@color-bottom-line: #eeeeee;
@color-lgray: #777777;
@color-dgray: @color-border;
@color-tag-a: #4078c0;
@color-tag-tr: #f8f8f8;
@color-font: #333333;
@color-img-shadow: #555555;

.box {
  height: calc(100% - 64px);
  background-color: #f5f7f9;
  padding: 30px 0;
  .article {
    height: 100%;
    width: 80%;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px 30px;
    border: 1px solid #dcdee2;
    overflow: scroll;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    > .ivu-dropdown {
      position: absolute;
      right: 30px;
      font-size: 20px;
      top: 12px;
      .ivu-dropdown-rel {
        > a {
          color: #333;
        }
      }
      .ivu-select-dropdown {
        left: -30px;
        .ivu-dropdown-menu {
          width: 77px;
          min-width: 77px;
        }
      }

    }
    &:hover {
      box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
      border-color: #eee;
    }
    .title,
    .desc {
      text-align: center;
      padding-top: 20px;
      color: #808284;
    }
    .desc {
      padding: 5px;
      text-align: center;
    }
    p {
      padding: 15px;
      color: #333;
    }
    h2 {
      text-align: center;
      padding: 10px 0;
    }
    /deep/.markdown {
      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        margin-top: 1em;
        margin-bottom: 16px;
        font-weight: bold;
        line-height: 1.4;
      }
      p,
      blockquote,
      ul,
      ol,
      dl,
      table,
      pre {
        margin-top: 0;
        margin-bottom: 16px;
      }
      h1 {
        margin: 0.67em 0;
        padding-bottom: 0.3em;
        font-size: 2.25em;
        line-height: 1.2;
        border-bottom: 1px solid @color-bottom-line;
      }
      h2 {
        padding-bottom: 0.3em;
        font-size: 1.75em;
        line-height: 1.225;
        border-bottom: 1px solid @color-bottom-line;
      }
      h3 {
        font-size: 1.5em;
        line-height: 1.43;
      }
      h4 {
        font-size: 1.25em;
      }
      h5 {
        font-size: 1em;
      }
      h6 {
        font-size: 1em;
        color: @color-lgray;
      }
      ol,
      ul {
        padding-left: 2em;
        li {
          padding: 5px 0 5px 10px;
        }
      }
      blockquote {
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px;
        color: @color-lgray;
        border-left: 4px solid @color-dgray;
      }
      table {
        display: block;
        width: 100%;
        overflow: auto;
        word-break: normal;
        word-break: keep-all;
        border-collapse: collapse;
        border-spacing: 0;
        tr {
          background-color: @color-bg;
          border-top: 1px solid @color-border-top;
          &:nth-child(2n) {
            background-color: @color-tag-tr;
          }
        }
        th,
        td {
          padding: 6px 13px;
          border: 1px solid @color-border;
        }
      }
      pre {
        word-wrap: normal;
        padding: 16px;
        overflow: auto;
        font-size: 85%;
        line-height: 1.45;
        background-color: @color-code-bg;
        border-radius: 3px;
        code {
          display: inline;
          max-width: initial;
          padding: 0;
          margin: 0;
          overflow: initial;
          font-size: 100%;
          line-height: inherit;
          word-wrap: normal;
          white-space: pre;
          border: 0;
          border-radius: 3px;
          background-color: transparent;
          &:before,
          &:after {
            content: normal;
          }
        }
      }

      code {
        font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
        padding: 0;
        padding-top: 0.2em;
        padding-bottom: 0.2em;
        margin: 0;
        font-size: 85%;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        &:before,
        &:after {
          letter-spacing: -0.2em;
          content: '\00a0';
        }
      }
      a {
        color: @color-tag-a;
        text-decoration: none;
        background: transparent;
      }
      img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 4px;
        box-shadow: 0 0 10px @color-img-shadow;
      }
      strong {
        font-weight: bold;
      }
      em {
        font-style: italic;
      }

      del {
        text-decoration: line-through;
      }
    }
  }
}
